package com.ruoyi.smart.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 计划对象 smart_plan
 * 
 * @author minwei
 * @date 2022-04-07
 */
public class SmartPlan extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 父编码 */
    @Excel(name = "父编码")
    private String parentId;

    /** 关联ID */
    @Excel(name = "关联ID")
    private String aboutId;

    /** 组织编号 */
    @Excel(name = "组织编号")
    private String organizeorganazId;

    /** 名称 */
    @Excel(name = "名称")
    private String name;

    /** 产品id */
    @Excel(name = "产品id")
    private String productId;

    /** 编码 */
    @Excel(name = "编码")
    private String code;

    /** 批次 */
    @Excel(name = "批次")
    private String batch;

    /** 计划数量 */
    @Excel(name = "计划数量")
    private Long planNum;

    /** 实际数量 */
    @Excel(name = "实际数量")
    private Long num;

    /** 开始日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startDate;

    /** 结束日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endDate;

    /** 入库状态 */
    @Excel(name = "入库状态")
    private String state;

    /** 创建人ID */
    @Excel(name = "创建人ID")
    private String createUserId;

    /** 创建日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "创建日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date createDate;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setParentId(String parentId) 
    {
        this.parentId = parentId;
    }

    public String getParentId() 
    {
        return parentId;
    }
    public void setAboutId(String aboutId) 
    {
        this.aboutId = aboutId;
    }

    public String getAboutId() 
    {
        return aboutId;
    }
    public void setOrganizeorganazId(String organizeorganazId) 
    {
        this.organizeorganazId = organizeorganazId;
    }

    public String getOrganizeorganazId() 
    {
        return organizeorganazId;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setProductId(String productId) 
    {
        this.productId = productId;
    }

    public String getProductId() 
    {
        return productId;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setBatch(String batch) 
    {
        this.batch = batch;
    }

    public String getBatch() 
    {
        return batch;
    }
    public void setPlanNum(Long planNum) 
    {
        this.planNum = planNum;
    }

    public Long getPlanNum() 
    {
        return planNum;
    }
    public void setNum(Long num) 
    {
        this.num = num;
    }

    public Long getNum() 
    {
        return num;
    }
    public void setStartDate(Date startDate) 
    {
        this.startDate = startDate;
    }

    public Date getStartDate() 
    {
        return startDate;
    }
    public void setEndDate(Date endDate) 
    {
        this.endDate = endDate;
    }

    public Date getEndDate() 
    {
        return endDate;
    }
    public void setState(String state) 
    {
        this.state = state;
    }

    public String getState() 
    {
        return state;
    }
    public void setCreateUserId(String createUserId) 
    {
        this.createUserId = createUserId;
    }

    public String getCreateUserId() 
    {
        return createUserId;
    }
    public void setCreateDate(Date createDate) 
    {
        this.createDate = createDate;
    }

    public Date getCreateDate() 
    {
        return createDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("parentId", getParentId())
            .append("aboutId", getAboutId())
            .append("organizeorganazId", getOrganizeorganazId())
            .append("name", getName())
            .append("productId", getProductId())
            .append("code", getCode())
            .append("batch", getBatch())
            .append("planNum", getPlanNum())
            .append("num", getNum())
            .append("startDate", getStartDate())
            .append("endDate", getEndDate())
            .append("state", getState())
            .append("createUserId", getCreateUserId())
            .append("createDate", getCreateDate())
            .toString();
    }
}
